package com.wuxiaolong.framework.model;

import jdk.nashorn.internal.objects.annotations.Getter;
import jdk.nashorn.internal.objects.annotations.Setter;

/**
 * Description: 每一个bean应该具有的属性
 *  扫码时，将每个具有扫描注解的class都解析成这样一个对象
 *
 * @author 诸葛小猿
 * @date 2020-11-22
 */
public class BeanDefinition {
    private String scope;
    private Boolean isLazy;
    private Class beanClazz;

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Boolean getLazy() {
        return isLazy;
    }

    public void setLazy(Boolean lazy) {
        isLazy = lazy;
    }

    public Class getBeanClazz() {
        return beanClazz;
    }

    public void setBeanClazz(Class beanClazz) {
        this.beanClazz = beanClazz;
    }

    @Override
    public String toString() {
        return "BeanDefinition{" +
                "scope='" + scope + '\'' +
                ", isLazy=" + isLazy +
                ", beanClazz=" + beanClazz +
                '}';
    }
}
